package cn.kgc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author 肖天锴
 * @version 1.0
 * @date 2022/10/7 - 16:21
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private int orderId;
    private String orderNum;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orderDate;
    private String orderState;
    private int clientId;
    private int roomId;
    private int detailId;
    private Client client;
    private Room room;
    private Detail detail;
}
